package com.zhentao.tcp1;

import com.zhentao.tcp1.service.ParkingManagementService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Tcp1Application {

    public static void main(String[] args) {
        SpringApplication.run(Tcp1Application.class, args);
    }
    @Bean
    public ToolCallbackProvider toolCallbackProvider(ParkingManagementService parkingManagementService){
        return MethodToolCallbackProvider.builder().toolObjects(parkingManagementService).build();
    }
}
